package com.scs.application.modules.fsd.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.scs.application.core.mapper.IBaseMapper;
import com.scs.application.modules.fsd.entity.FsdStation;
import com.scs.application.modules.fsd.entity.FsdUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Repository
public interface FsdUserMapper extends IBaseMapper<FsdUser> {
    IPage<HashMap<String,Object>> getUserList(Page page, @Param(Constants.WRAPPER) Wrapper wrapper);

    List<Map<String, Object>> getRelationByUser(String id);

    List<FsdStation> getStationRoleByUserId(String userId);
}
